<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Praca magisterska: Plik źródłowy C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/timer.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_eti_small.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Praca magisterska
   
   </div>
   <div id="projectbrief">Implementacja algorytmów filtracji adaptacyjnej o strukturze transwersalnej na platformie CUDA</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Wygenerowano przez Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
      <li><a href="globals.html"><span>Składowe&#160;plików</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('timer_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/timer.h</div>  </div>
</div>
<div class="contents">
<a href="timer_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef TIMER_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define TIMER_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#ifdef _WIN32   // Windows</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define WIN32_LEAN_AND_MEAN // brak powodował dziwne błędy kompilacji ???</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include &lt;windows.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#else          // Unix</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#include &lt;sys/time.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#endif</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00030"></a><a class="code" href="struct_timer.html">00030</a> <span class="keyword">struct </span><a class="code" href="struct_timer.html" title="Stoper z możliwością pomiaru czasu z dokładnością do 1 mikrosekundy.">Timer</a> {
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifdef WIN32</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>    LARGE_INTEGER frequency; 
<a name="l00034"></a>00034     LARGE_INTEGER <a class="code" href="struct_timer.html#a18df3817fff6de39d57734bfce0f74b0" title="start pomiaru">startTime</a>; 
<a name="l00035"></a>00035         LARGE_INTEGER <a class="code" href="struct_timer.html#af9407bbc30ffa07b84db398b7b38a9c9" title="koniec pomiaru">stopTime</a>;  
<a name="l00036"></a>00036 <span class="preprocessor">#else</span>
<a name="l00037"></a><a class="code" href="struct_timer.html#a18df3817fff6de39d57734bfce0f74b0">00037</a> <span class="preprocessor"></span>    timeval <a class="code" href="struct_timer.html#a18df3817fff6de39d57734bfce0f74b0" title="start pomiaru">startTime</a>; 
<a name="l00038"></a><a class="code" href="struct_timer.html#af9407bbc30ffa07b84db398b7b38a9c9">00038</a>     timeval <a class="code" href="struct_timer.html#af9407bbc30ffa07b84db398b7b38a9c9" title="koniec pomiaru">stopTime</a>; 
<a name="l00039"></a>00039 <span class="preprocessor">#endif</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="struct_timer.html#ab26cb8d29a882af7df3924a666fcd00e">00041</a>         <span class="keywordtype">int</span> <a class="code" href="struct_timer.html#ab26cb8d29a882af7df3924a666fcd00e" title="flaga stopu">stopped</a>; 
<a name="l00042"></a><a class="code" href="struct_timer.html#a751780309fb9c17b435a8b87183b91f5">00042</a>     <span class="keywordtype">double</span> <a class="code" href="struct_timer.html#a751780309fb9c17b435a8b87183b91f5" title="start pomiaru w mikrosekundach">startTimeInMicroSec</a>; 
<a name="l00043"></a><a class="code" href="struct_timer.html#aec5f56ad4e309448692f680d339c2d0e">00043</a>         <span class="keywordtype">double</span> <a class="code" href="struct_timer.html#aec5f56ad4e309448692f680d339c2d0e" title="koniec pomiaru w mikrosekundach">stopTimeInMicroSec</a>; 
<a name="l00044"></a>00044 
<a name="l00048"></a>00048         <a class="code" href="struct_timer.html#a5f16e8da27d2a5a5242dead46de05d97">Timer</a>();
<a name="l00049"></a>00049 
<a name="l00053"></a>00053         <a class="code" href="struct_timer.html#a14fa469c4c295c5fa6e66a4ad1092146">~Timer</a>();
<a name="l00054"></a>00054 
<a name="l00060"></a>00060         <span class="keywordtype">void</span> <a class="code" href="struct_timer.html#a3a8b5272198d029779dc9302a54305a8">start</a>();
<a name="l00061"></a>00061 
<a name="l00067"></a>00067         <span class="keywordtype">void</span> <a class="code" href="struct_timer.html#a63f0eb44b27402196590a03781515dba">stop</a>();
<a name="l00068"></a>00068 
<a name="l00074"></a>00074         <span class="keywordtype">double</span> <a class="code" href="struct_timer.html#aeec8f4f81e1b09c6e00ca6744f01af31">getElapsedTimeInMicroSec</a>();
<a name="l00075"></a>00075 
<a name="l00081"></a>00081         <span class="keywordtype">double</span> <a class="code" href="struct_timer.html#a4f6a151ee9ea8b691bcb677e8ae3f903">getElapsedTimeInMiliSec</a>();
<a name="l00082"></a>00082 
<a name="l00088"></a>00088         <span class="keywordtype">double</span> <a class="code" href="struct_timer.html#ac05212f488db392f857660e28a402927">getElapsedTimeInSec</a>();
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 };
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="preprocessor">#endif </span><span class="comment">/* TIMER_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="timer_8h.html">timer.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Wygenerowano Wed Nov 23 2011 12:30:13 dla Praca magisterska programem
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
